package com.xiao.singleapp.common.web.domain;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * Entity基类
 */
public class BaseEntity implements Serializable {
    private static final long serialVersionUID = 7128508876130085851L;

    private Long crtBy;

    private String crtByName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date crtDtm;

    @JSONField(serialize = false)
    private Long mdyBy;

    @JSONField(serialize = false)
    private String mdyByName;

    @JSONField(serialize = false)
    private Date mdyDtm;

    @JSONField(serialize = false)
    private Long voidedBy;

    @JSONField(serialize = false)
    private String voidedByName;

    @JSONField(serialize = false)
    private Date voidedDtm;

    @JSONField(serialize = false)
    private Long voided;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Long getCrtBy() {
        return crtBy;
    }

    public void setCrtBy(Long crtBy) {
        this.crtBy = crtBy;
    }

    public String getCrtByName() {
        return crtByName;
    }

    public void setCrtByName(String crtByName) {
        this.crtByName = crtByName;
    }

    public Date getCrtDtm() {
        return crtDtm;
    }

    public void setCrtDtm(Date crtDtm) {
        this.crtDtm = crtDtm;
    }

    public Long getMdyBy() {
        return mdyBy;
    }

    public void setMdyBy(Long mdyBy) {
        this.mdyBy = mdyBy;
    }

    public String getMdyByName() {
        return mdyByName;
    }

    public void setMdyByName(String mdyByName) {
        this.mdyByName = mdyByName;
    }

    public Date getMdyDtm() {
        return mdyDtm;
    }

    public void setMdyDtm(Date mdyDtm) {
        this.mdyDtm = mdyDtm;
    }

    public Long getVoidedBy() {
        return voidedBy;
    }

    public void setVoidedBy(Long voidedBy) {
        this.voidedBy = voidedBy;
    }

    public String getVoidedByName() {
        return voidedByName;
    }

    public void setVoidedByName(String voidedByName) {
        this.voidedByName = voidedByName;
    }

    public Date getVoidedDtm() {
        return voidedDtm;
    }

    public void setVoidedDtm(Date voidedDtm) {
        this.voidedDtm = voidedDtm;
    }

    public Long getVoided() {
        return voided;
    }

    public void setVoided(Long voided) {
        this.voided = voided;
    }
}
